//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "tyr_halo\fn_addaction.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_halo_action_id","_args"];

_halo_action_id =PGETVAR(QGVAR(HALO_ACTION_ID),0);
if (_halo_action_id <= 0) then {
	_args = [];
	SETVAL(_args,0,ARR_2(player,false));
	SETVAL(_args,1,tyr_halo_fnc_execute);
	_halo_action_id = player addAction [localize "STR_TMF_HALO_MENU", "tmf\support\addAction.sqf",_args,10,True,True,"","alive _target && (call tyr_halo_fnc_checkplayer)"];
	PSETVAR(QGVAR(HALO_ACTION_ID),_halo_action_id);
};

TRACE("End");
TMFPROFILERSTOP;